-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key-value pair scripts enhancement #216
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good from me, thanks!
I added our institute affiliations |
Anything else from you @jburel? Sorry for being pushy, I'm trying to close that topic. |
One heads up in terms of versioning: the removal or renaming of scripts in my mind would count as a breaking change. |
So it would mean a |
Seconding that. In my mind that would almost justify calling the next release of Semi-related, is there any reference documentation about the existing scripts that would need to be updated? And for end-users who would have been using the previous key/value scripts in production, are there simple upgrade recommendations? |
About documentation, I have made documentation for the scripts, that lives on its own for now. The plan was to merge it with your doc after the merge of this branch is completed, if I recall correctly what JM said. The repo: The doc: |
Hello, Apologize for entering the game so late. I've tested the scripts and I found them very good ! I have a suggestion regarding the csv file that is generated. Would it be possible to add the separator used when it is generated (by adding in the first line This will ease the csv file opening and saving with Excel. For example, I have an Excel configured to recognize commas as separator. If the image names don't contain any comma, that's fine but if they contain some, it becomes a mess. I already give those scripts to some users and I made them aware of such issues but it is always better to force reading the file with the correct separator. I hope it's not too late for that. Rémy. |
Hi @Rdornier, The annoying trick I used with Excel is to open a blank sheet and in Two issues I can fix:
Thanks a lot for the feedback. That shouldn't be too late |
I didn't know neither until today... I found this on stackoverflow |
Hi @Tom-TBT I have another feedback for you. When I try to convert a namespace from To be able to merge the two KVPs in one, I had to run again the script, convert from Thanks, |
Oh, I see. The extra run could currently be avoided by giving to "Old Namespace" the two namespaces as input: But ticking "create new and merge" seems like an explicit agreement to merge all key-value pairs into a single A_namespace. When ticking that box, I can automatically add the "New namespace" to the "Old namespace" list. |
Ok , it works !
Yes, checking the box to bypass the need of writing both namespaces would be very good to have. |
@Rdornier I included both of your suggestions. You can go ahead and try them out with your users. Let me know if that solves your issues. |
@Tom-TBT Thank you very much for your changes and for your reactivity ; I've just tested them and it works perfectly on my side ! I'm pretty sure it will also work for the users. |
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/omero-export-list-of-file-names-from-a-project-dataset/102118/2 |
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: |
@Tom-TBT see #216 (comment) please - not sure if you want to change the script at this stage, but the use case mentioned is clearly asking for more robust options. Such as, imho, to not to have select the KVPs on Images or Datasets only in the options of the |
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: |
Hi @Tom-TBT , I recently had a small issue with the export script when trying to export from an entire plate. The error I got was
Rémy |
Hello,
here are the four scripts around key-value pairs, enhancing three and adding a new one to convert key-value pairs.
Import_from_csv.py
: Import key-value pairs and tags from a CSV fileExport_to_csv.py
: Export key-value pairs and tags to a CSV fileRemove_KeyVal.py
: Delete key-value pairsConvert_KeyVal_namespace.py
: Changes the namespace of key-value pairsFeel free to propose different names for the scripts, parameters, or UI changes.
Current repo for the associated guide:
https://github.com/German-BioImaging/guide-KVpairs-scripts/